﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="oportunidades.aspx.cs" Inherits="GesWork.ventas.oportunidades" %>


    <asp:content ID="df" runat="server" ContentPlaceHolderID="ContentPlaceHolder1">
      
      
      
            <table class="tblGeneral" >
           <tr class="tblHeader">
                    <td>
                   Descripcion
                 </td>
                    <td>
                    Cliente
                    </td>
                    <td>
                    Precio
                    </td>
                    <td>
                    Probablilidad
                    </td>
                    

                </tr>
                <asp:Repeater ID="Repeater1" runat="server" DataSourceID="SqlDataSource1">
                <ItemTemplate>
                <tr class="tblBody">
                    <td>
                    <a href="oportunidad.aspx?id=<%# Eval("ID") %>" > <%# Eval("Name")%></a>
                    </td>
                    <td>
                    <%# Eval("enterprise")%>
                    </td>
                    <td>
                    <%# Eval("RE_REVENUE")%>
                    </td>
                     <td>
                    <%# Eval("RE_PROBABILITY")%> %
                    </td>
                   

                </tr>
                </ItemTemplate>
                </asp:Repeater>
            </table>
    
    <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
        ConnectionString="<%$ ConnectionStrings:gesworkConnectionString %>" 
        
                
                SelectCommand="SELECT Oportunity.ID, Oportunity.Name, RE_REVENUE, IdCustomer,Enterprise.name AS enterprise, RE_PROBABILITY FROM Oportunity, Enterprise WHERE Enterprise.ID=IdCustomer">
    </asp:SqlDataSource>
    
    
       <br />
            
              <asp:ImageButton ID="NewButton" runat="server"   
                 ImageUrl="~/images/btnNuevo.png"  CssClass="botones" CausesValidation="False" 
                    CommandName="New" PostBackUrl="~/ventas/oportunidad.aspx"   />

<p>
</p>
    </asp:content>

